﻿@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script id="kmTemplate" type="text/x-jQuery-tmpl">
    <input id="delete-key" type="hidden" value="${id}" />
    <input id="delete-key2" type="hidden" value="${remoteid}" />
    <div data-role="fieldcontain">
        <h3>${omschrijving}</h3>
        <p>Eindstand: <b>${eindkm}</b>, beginstand: <b>${startkm}</b></p>
    </div>
</script>

<div id="result"></div>

<div data-role="fieldcontain">
    <fieldset class="ui-grid-a">
        <div class="ui-block-a">
            <a href="#" data-role="button" data-icon="back" class="ui-btn-left" rel="external" id="cancel">Annuleren</a>
        </div>
        <div class="ui-block-b">
            <button data-theme="b" id="submit" type="button" onclick="verwijderLocalKm();">
                OK</button>
        </div>
    </fieldset>
</div>

@*<input id="delete-key" type="hidden" />
<input id="delete-key2" type="hidden" />
<div data-role="fieldcontain">
    <span id="omschrijving"></span>
</div>
<div data-role="fieldcontain">
    <fieldset class="ui-grid-a">
        <div class="ui-block-a">
            <a href="@Url.Action("Index")" data-role="button" data-icon="back" class="ui-btn-left" rel="external">Annuleren</a>
        </div>
        <div class="ui-block-b">
            <button data-theme="b" id="submit" type="button" onclick="verwijderLocalKm();">
                OK</button>
        </div>
    </fieldset>
</div>*@

<script language="javascript" type="text/javascript">

    $(document).ready(function () {
        LoadDeleteKmDetails();
    });

</script>